package com.module.user.ui.me

import androidx.recyclerview.widget.RecyclerView
import com.alibaba.android.arouter.facade.annotation.Route
import com.allen.app.core.RouterHub
import com.allen.base.base.fragment.BaseFragment
import com.allen.base.utils.LayoutManagerUtil
import com.module.user.R
import com.module.user.ui.me.adapter.ItemAdapter
import com.module.user.ui.me.adapter.ItemEntity
import kotlinx.android.synthetic.main.user_fragment_me.*

/**
 * author : Allen
 * date   : 2020/08/10
 * time   : 19:19
 * desc   : 我 主页
 */
@Route(path = RouterHub.ROUTER_ME_FRAGMENT)
class MeFragment : BaseFragment() {
    override fun getLayoutResID(): Int = R.layout.user_fragment_me

    override fun initViews() {
        user_embarrassment?.setTopText("0")
        user_embarrassment?.setBottomText(getString(R.string.user_embarrassment))

        user_dynamic?.setTopText("0")
        user_dynamic?.setBottomText(getString(R.string.user_dynamic))

        user_attention?.setTopText("0")
        user_attention?.setBottomText(getString(R.string.user_dynamic))

        user_fans?.setTopText("0")
        user_fans?.setBottomText(getString(R.string.user_fans))

        user_list?.layoutManager= LayoutManagerUtil.getVerticalLinearLayoutManager(context)
        user_list?.adapter= ItemAdapter(ItemEntity.getData())

    }
}